
<%@page import="entities.Customers"%>
<%@page import="java.util.List"%>
<%@page import="session.ShowAllOrderLocal"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="javax.naming.Context"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tunga Restaurant</title>        
    </head>
    <body>
        <h1 style="color: #7A0402" align="center">Tunga Restaurant</h1>
        <center>
            <div class="outer">
                <!--Header end-->
                <div id="header">
                    <h2 align="center" style="color: 7A0402">Report Customers Details</h2>
                </div>
                <!--Top nav end-->
                <div style="clear:left"></div>
                <div id="outer2">
                    <div id="content" align="center">
                        <br>
                        <div id="main">
                            <c:set var="list" value="${sessionScope.listCus}"/>
                            <c:if test="${empty list}">
                                <h3>Not content!</h3>
                            </c:if>
                            <c:if test="${not empty list}">
                                <div align="center">
                                    <table align="center" border="0" class="fixtable">
                                        <th>No</th>
                                        <th>UserName</th>
                                        <th>First Name</th>
                                        <th>Last Name</th>
                                        <th>Email</th>
                                        <th>Phone</th>
                                        <th>Address</th>
                                        <c:forEach var="rows" items="${list}">
                                            <form action="ControllerCustomer" method="POST">
                                                <c:set var="count" value="${count+1}"/>
                                                <tr>
                                                    <td>${count}</td>
                                                    <td><input type="hidden" name="id" value="${rows.custID}"/>${rows.custID}</td>
                                                    <td>${rows.fname}</td>
                                                    <td>${rows.lname}</td>
                                                    <td>${rows.email}</td>
                                                    <td>${rows.phone}</td>
                                                    <td>${rows.address}</td>
                                                </tr>
                                            </form>
                                        </c:forEach>
                                    </table>
                                </div>
                            </c:if>
                        </div>
                    </div>
                </div>                
                <!--Bottom part-->
            </div>
        </center>
    </body>
</html>
